package com.zhoufeng.model;

import com.jfinal.plugin.activerecord.Model;

public class User extends Model<User> {
	public final static User me = new User();

	public User findByAccount(User user) {
		User dbUser = me.findFirst("select * from thing_user where account = '" + user.getStr("account") + "' and enabled = 1 ");
		return dbUser;
	}
}
